<?php

namespace app\admin\model;

use think\Model;


/**
 * @author:崔彦雷
 * @time:2023/6/15 上午 9:18
 * Class Topic
 * @property int id
 * @property string title
 * @property int sort
 * @property int target
 * @property int is_del
 * @property string update_time
 * @property string add_time
 * @package app\admin\model
 */
class Topic extends Model
{

    protected $table = 'topic';
    protected $pk = 'id';

    public function option(){
        return $this->hasMany(TopicOption::class,'topic_id','id');
    }

}